Skip to content

Add building and container recipes#31

Closed
AbdulRehman-Fayyaz wants to merge 2 commits intoSimulation-Software-Engineering:mainfrom
AbdulRehman-Fayyaz:main
Closed

Add building and container recipes#31
AbdulRehman-Fayyaz wants to merge 2 commits intoSimulation-Software-Engineering:mainfrom
AbdulRehman-Fayyaz:main

Conversation

@AbdulRehman-Fayyaz
Copy link
Copy Markdown

This Pull Request completes the Fight with CMake exercise.

Changes Implemented:

  • Created a Dockerfile based on ubuntu:24.04.
  • Installed all required system dependencies, including deal.ii, mpi, trilinos, petsc, and tbb.
  • Manually built and installed yaml-cpp version 0.6.3 from source as requested.
  • Created CMakeLists.txt to link Boost::filesystem, MPI, OpenMP, and yaml-cpp.
  • Utilized the deal_ii_setup_target(main) macro to correctly handle transitive dependencies (Trilinos, PETSc, TBB) for the FEM solver.
  • Uncommented and enabled all exercises in main.cpp.

Verification:

  • The container builds successfully.
  • build_and_run.sh executes without errors and produces the expected output for all modules (Flatset, Filesystem, FEM).
  • Verified the YAML parser manually by running ./build/main yamlParser/config.yml.

@AbdulRehman-Fayyaz
Copy link
Copy Markdown
Author

AbdulRehman-Fayyaz commented Nov 26, 2025

GitLab name: @ rehmanal

Copy link
Copy Markdown

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good here and works, thanks!

Comment thread Dockerfile
make install

# Set environment variables
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, LD_LIBRARY_PATH at the right-hand side is undefined at this point.

Comment thread Dockerfile

# Set environment variables
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
WORKDIR /cmake-exercise No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a WORKDIR set, I would expect it to exist and have contents, independently of the user-defined mount.

@MakisH MakisH closed this Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants